package com.hjxr.sysadmin.zsj.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hjxr.sysadmin.zsj.mapper.ParkPolygonMapper;
import com.hjxr.sysadmin.zsj.domain.ParkPolygon;
import com.hjxr.sysadmin.zsj.service.IParkPolygonService;

/**
 * 园区画图坐标Service业务层处理
 *
 * @author hjxr
 * @date 2021-03-31
 */
@Service
public class ParkPolygonServiceImpl implements IParkPolygonService
{
    @Autowired
    private ParkPolygonMapper parkPolygonMapper;

    /**
     * 查询园区画图坐标
     *
     * @param parkPolygonId 园区画图坐标ID
     * @return 园区画图坐标
     */
    @Override
    public ParkPolygon selectParkPolygonById(Long parkPolygonId)
    {
        return parkPolygonMapper.selectParkPolygonById(parkPolygonId);
    }

    /**
     * 查询园区画图坐标列表
     *
     * @param parkPolygon 园区画图坐标
     * @return 园区画图坐标
     */
    @Override
    public List<ParkPolygon> selectParkPolygonList(ParkPolygon parkPolygon)
    {
        return parkPolygonMapper.selectParkPolygonList(parkPolygon);
    }

    /**
     * 新增园区画图坐标
     *
     * @param parkPolygon 园区画图坐标
     * @return 结果
     */
    @Override
    public int insertParkPolygon(ParkPolygon parkPolygon)
    {
        return parkPolygonMapper.insertParkPolygon(parkPolygon);
    }

    /**
     * 修改园区画图坐标
     *
     * @param parkPolygon 园区画图坐标
     * @return 结果
     */
    @Override
    public int updateParkPolygon(ParkPolygon parkPolygon)
    {
        return parkPolygonMapper.updateParkPolygon(parkPolygon);
    }

    /**
     * 批量删除园区画图坐标
     *
     * @param parkPolygonIds 需要删除的园区画图坐标ID
     * @return 结果
     */
    @Override
    public int deleteParkPolygonByIds(Long[] parkPolygonIds)
    {
        return parkPolygonMapper.deleteParkPolygonByIds(parkPolygonIds);
    }

    /**
     * 删除园区画图坐标信息
     *
     * @param parkPolygonId 园区画图坐标ID
     * @return 结果
     */
    @Override
    public int deleteParkPolygonById(Long parkPolygonId)
    {
        return parkPolygonMapper.deleteParkPolygonById(parkPolygonId);
    }
}
